function scriptQueryString(name) {
    var scripts = document.getElementsByTagName("script");
    var url = scripts[scripts.length - 1].src;
    if (url.indexOf("?") == -1 || url.indexOf(name + '=') == -1) {
    	return '';
    }
    var reg = new RegExp(name + "=([^&]*)(&|$)", "i");
    var r = url.match(reg);
    if (r != null) return unescape(r[1]);
        return '';
    }



var pos = scriptQueryString("pos") ; 

if(pos == "top"){
	var position = "top:50px;";
}else if(pos == "center"){
	var position = "top:50%";
}else{
	var position = "bottom:40px";
}
$(document).ready(function(){
	var codeHtml='<div class="code_imgfix"><div><img width="130" height="208" src="//cdn.120askimages.com/ask/images/alert_wx.jpg" /></div></div><style>.code_imgfix{position:fixed;right:10px;left:auto;'+position+';_position:absolute;_bottom:auto;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));width:130px; z-index: 999999;margin-top:-104px;}.code_imgfix img{ clear:both;}.code_imgfix div{ clear:both; overflow:hidden;zoom:1;height:260px;}.code_imgfix a{font-size:12px;color:#ff6600;clear:both; float:right;}</style>';
	$("body").append(codeHtml);
});